home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 359_11 / patch5.000 / EMU387_E57.CC < prev    next >
C/C++ Source or Header  |  1991-09-11  |  264b  |  19 lines

  1. #include "emu.h"
  2. #include "rmov.h"
  3.  
  4. void emu_57()
  5. {
  6.   if (modrm > 0277)
  7.   {
  8.     //
  9.     emu_bad();
  10.   }
  11.   else
  12.   {
  13.     // fstsw m2byte
  14.     status_word &= ~SW_TOP;
  15.     status_word |= (top&7) * SW_TOPS;
  16.     *(short *)get_modrm() = status_word;
  17.   }
  18. }
  19.